package com.ms.p2p.dao;


import com.ms.p2p.entity.member.Auth;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface AuthDao extends CrudDao<Auth> {

    Auth findByUserId(@Param("userId") int user_id);

    List<Map<String, Object>> findPager(@Param("userId") String userId, @Param("userName") String userName, @Param("realName") String realname, @Param("begin_date") String begin_date, @Param("end_date") String end_date, @Param("status") String status, @Param("begin") int begin, @Param("size") Integer size);

    int findCount(@Param("userId") String userId, @Param("userName") String userName, @Param("realName") String realname, @Param("begin_date") String begin_date, @Param("end_date") String end_date, @Param("status") String status);

    int findOther(@Param("card") String id_number, @Param("userId") Integer id);
}
